<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<%@taglib prefix="fm" uri="http://www.springframework.org/tags/form"%>
<div class="right">
	<div class="location">
		<strong>你现在所在的位置是:</strong> <span>用户管理页面 >> 用户修改页面</span>
	</div>
	<div class="providerAdd">
		<!-- 请在此处添加修改数据表单 -->
		<fm:form id="userForm" name="userForm" modelAttribute="user" action="${pageContext.request.contextPath }/user/update.html" method="post">
			<input type="hidden" name="id" value="${user.id }"/>
			<div>
				<label for="name">用户名称：</label>
				<fm:input path="name" />
				<font color="red"></font>
				<fm:errors path="name" cssStyle="color:red"/>
			</div>

			<div>
				<label for="UserRole">用户角色：</label>
				<select name="role" id="UserRole">

					<option value="0">--请选择--</option>
					<option <c:if test="${1 == user.role }">selected="selected"</c:if>
							value="1">员工</option>
					<option <c:if test="${2 == user.role }">selected="selected"</c:if>
							value="2">会议管理员</option>
					<option <c:if test="${3 == user.role}">selected="selected"</c:if>
							value="3">超级管理员</option>

				</select>
				<font color="red"></font>
			</div>
			<div>
				<label for="UserStatus">用户状态：</label>
				<select name="status" id="UserStatus">
					<option value="1" <c:if test="${true == user.status}">selected="selected"</c:if>>
						在职
					</option>
					<option value="0" <c:if test="${false == user.status}">selected="selected"</c:if>>
						离职
					</option>
				</select>
				<font color="red"></font>
			</div>
			<div class="providerAddBtn">
				<input type="button" name="save" id="save" value="保存" />
				<input type="button" id="back" name="back" value="返回"/>
			</div>
		</fm:form>
	</div>
</div>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp"%>
<!-- 请注意更新JS脚本路径 -->
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/usermodify.js"></script>
